package com.yulinlin.admin.modules.sys.controller;

import com.yulinlin.common.controller.SuperController;
import io.swagger.annotations.*;


import com.yulinlin.common.domain.ResponseVo;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.RequestMethod;

import com.yulinlin.admin.modules.sys.domain.SysUserEntity;

import com.yulinlin.admin.modules.sys.service.ISysUserService;
import com.yulinlin.admin.modules.sys.domain.config.SysUserConfig;
import com.yulinlin.admin.modules.sys.domain.page.SysUserPage;

@Api(tags = "系统用户")
@RestController
@RequestMapping("/sys/sysUser")
public class SysUserController extends SuperController<SysUserEntity,SysUserPage>  {


    @Autowired
    private ISysUserService service;

    @ApiOperation("获取配置数据")
    @RequestMapping(value = "config",method = RequestMethod.POST)
    public ResponseVo<SysUserConfig> config() {
        SysUserConfig config =SysUserConfig.newInstance();
        return ResponseVo.newInstance(config);
    }


}
